let date={
    msg:{
        class:"19应用3-3班",
        id:"1903010304",
        name:"陈廷轩"
    },
    ImgColor:['#00FA9A','#FF3030','#00BFFF','#FFB90F'],
    ImgSrc:['Picture/P1.jpg','Picture/P2.jpg','Picture/P3.jpg','Picture/P4.jpg']
}

let tempDIV = document.querySelectorAll('#div1 div')

tempDIV[0].textContent=date.msg.class
tempDIV[1].textContent=date.msg.id
tempDIV[2].textContent=date.msg.name

let tempDIV2 = document.querySelectorAll('#div2 div')

tempDIV2[0].style.background=date.ImgColor[0]
tempDIV2[1].style.background=date.ImgColor[1]
tempDIV2[2].style.background=date.ImgColor[2]
tempDIV2[3].style.background=date.ImgColor[3]

let FigEle = document.querySelectorAll('#div3 div')

for (let i=0;i<date.ImgSrc.length;i++){
let Figure = document.createElement('img')
Figure.src=date.ImgSrc[i]
FigEle[i].textContent=''
FigEle[i].appendChild(Figure)
}